﻿using System.IO;
using Castle.Services.Logging.Log4netIntegration;
using log4net.Config;
using Inovout.Resources;

namespace Inovout
{
    internal class Log4netExtensionFactory : ExtendedLog4netFactory
    {
        internal Log4netExtensionFactory()
        {

        }
        internal Log4netExtensionFactory(ConfigFile configFile)
            :base(false)
        {
            using (Stream stream = configFile.Read())
            {
                XmlConfigurator.Configure(stream);
            }
        }
        internal Log4netExtensionFactory(Stream configStream)
        {
            XmlConfigurator.Configure(configStream);
        }
        internal Log4netExtensionFactory(string configFile)
            : base(configFile)
        {
        }
    }
}
